'''
入口
'''
import pytest
import time
import os


def run_all_cases():
    current_data = time.strftime('%Y-%m-%d %H:%M:%S')
    # pytest.main(['testcases', '-v','-s',f'--junit-xml=report/report.xml','--alluredir=report/allure-report', f'--html=report/reports.html'])
    pytest.main(["-vs", '--capture=tee-sys', '--alluredir', './report/allure-results', '--clean-alluredir'])
    os.system("allure generate --clean ./report/allure-results -o report/allure_report")

if __name__ == '__main__':
    run_all_cases()